package com.shenmazong.serveredustudent.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shenmazong.serveredustudent.pojo.TbStudent;
import com.shenmazong.serveredustudent.vo.StudentVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @Entity com.shenmazong.serveredustudent.pojo.TbStudent
 */
@Mapper
@Component
public interface TbStudentMapper extends BaseMapper<TbStudent> {

    IPage<TbStudent> getStudentPage(Page<StudentVo> tbStudentPage,@Param("paramMap") Map<String, Object> paramMap);

    TbStudent getLastStudent(@Param("clazzId") long clazzId);


}




